<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h2>B页面</h2>
    <button id="btn">点我，加载图片并渲染</button>

    <script>
      const btn = document.querySelector("#btn");
      btn.onclick = function () {
        const img = document.createElement("img");
        img.src =
          "https://hello-1253323335.cos.ap-guangzhou.myqcloud.com/pic_1.jpeg";
        document.body.appendChild(img);
      };
    </script>
  </body>
</html>
